package com.tiyunge.web.controller.common;

import java.util.List;

import com.tiyunge.system.domain.SysNotice;
import com.tiyunge.system.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tiyunge.common.core.controller.BaseController;
import com.tiyunge.common.annotation.Anonymous;
import com.tiyunge.common.core.domain.AjaxResult;

/**
 * 前台轮播图 信息操作处理
 *
 * @author yejiayu
 */
@RestController
@RequestMapping("/api/notice")
@Anonymous
public class NoticeController extends BaseController
{
    @Autowired
    private ISysNoticeService noticeService;

    /**
     * 获取前台公告列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        List<SysNotice> list = noticeService.selectNoticeListForFront();
        return success(list);
    }
}
